package com.team.service.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "spring.cloud.alicloud")
@Data
public class AliOssProperties {
    private String accessKey;   // 对应配置的access-key
    private String secretKey;   // 对应配置的secret-key
    private Oss oss;            // 嵌套oss配置

    @Data
    public static class Oss {
        private String endpoint;
        private String bucket;
    }
}
